package com.glink.manage.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
* @author  qiushaoshan
* @since 2025-03-04
*/
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="TemporaryAdmissionBean对象", description="人员临时准入")
@TableName(value = "temporary_admission", resultMap = "BaseResultMap")
public class TemporaryAdmissionBean extends Model<TemporaryAdmissionBean> {

    private static final long serialVersionUID = 4794272000961426936L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "obj_id")
    private String objId;

    @ApiModelProperty(value = "ID号（道闸使用）")
    private Integer personId;

    @ApiModelProperty(value = "准入单ID")
    private String accessMonadObjId;
    
    @ApiModelProperty(value = "所属工程ID")
    private String constructionWorkObjId;

    @ApiModelProperty(value = "准入类型")
    private String type;

    @ApiModelProperty(value = "所属单位ID")
    private String orgId;

    @ApiModelProperty(value = "单位名称")
    private String unitName;

    @ApiModelProperty(value = "证件号（身份证号/车牌号）")
    private String idNumber;

    @ApiModelProperty(value = "人员名称/车主姓名")
    private String name;

    @ApiModelProperty(value = "联系电话")
    private String contactNumber;
    
    @ApiModelProperty(value = "人脸照片")
    private String profilePicture;

    @ApiModelProperty(value = "准入周期开始")
    private Date cycleStart;

    @ApiModelProperty(value = "准入周期结束")
    private Date cycleEnd;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createUser;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "修改人")
    @TableField(fill = FieldFill.UPDATE)
    private String updateUser;
}
